package com.chenjiaru.designpattern.factory.factorymethod.order;


import com.chenjiaru.designpattern.factory.factorymethod.pizza.*;

public class LDOrderPizza extends OrderPizza {

	
	@Override
	public Pizza createPizza(String orderType) {
		Pizza pizza = null;
		if(orderType.equals("cheese")) {
			pizza = new LDCheesePizza();
		} else if (orderType.equals("pepper")) {
			pizza = new LDPepperPizza();
		}
		return pizza;
	}

}
